package com.bdqn.t296.noso.service.Imp;

import com.bdqn.t296.noso.entity.Menu;
import com.bdqn.t296.noso.entity.Role;
import com.bdqn.t296.noso.mapper.MenuMapper;
import com.bdqn.t296.noso.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImp implements MenuService {
    @Resource
    MenuMapper menuMapper;

    @Override
    public List<Menu> seleMenu(Role role) {
        return menuMapper.seleMenu(role);
    }

    @Override
    public List<Menu> selectAll() {
        return menuMapper.selectAll();
    }
}
